package com.liqi.items.service.impl;

import com.liqi.common.utils.DateUtils;
import com.liqi.items.domain.TServiceDeviceInventory;
import com.liqi.items.mapper.TServiceDeviceInventoryMapper;
import com.liqi.items.service.ITServiceDeviceInventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 一体机事项清单Service业务层处理
 * 
 * @author shiteng
 * @date 2023-05-12
 */
@Service
public class TServiceDeviceInventoryServiceImpl implements ITServiceDeviceInventoryService
{
    @Autowired
    private TServiceDeviceInventoryMapper tServiceDeviceInventoryMapper;

    /**
     * 查询一体机事项清单
     * 
     * @param id 一体机事项清单主键
     * @return 一体机事项清单
     */
    @Override
    public TServiceDeviceInventory selectTServiceDeviceInventoryById(Long id) {
        return tServiceDeviceInventoryMapper.selectTServiceDeviceInventoryById(id);
    }

    /**
     * 查询一体机事项清单列表
     * 
     * @param tServiceDeviceInventory 一体机事项清单
     * @return 一体机事项清单
     */
    @Override
    public List<TServiceDeviceInventory> selectTServiceDeviceInventoryList(TServiceDeviceInventory tServiceDeviceInventory) {
        return tServiceDeviceInventoryMapper.selectTServiceDeviceInventoryList(tServiceDeviceInventory);
    }

    /**
     * 新增一体机事项清单
     * 
     * @param tServiceDeviceInventory 一体机事项清单
     * @return 结果
     */
    @Override
    public int insertTServiceDeviceInventory(TServiceDeviceInventory tServiceDeviceInventory) {
        return tServiceDeviceInventoryMapper.insertTServiceDeviceInventory(tServiceDeviceInventory);
    }

    /**
     * 修改一体机事项清单
     * 
     * @param tServiceDeviceInventory 一体机事项清单
     * @return 结果
     */
    @Override
    public int updateTServiceDeviceInventory(TServiceDeviceInventory tServiceDeviceInventory) {
        return tServiceDeviceInventoryMapper.updateTServiceDeviceInventory(tServiceDeviceInventory);
    }

    /**
     * 批量删除一体机事项清单
     * 
     * @param ids 需要删除的一体机事项清单主键
     * @return 结果
     */
    @Override
    public int deleteTServiceDeviceInventoryByIds(List<String> ids) {
        return tServiceDeviceInventoryMapper.deleteTServiceDeviceInventoryByIds(ids);
    }

}
